#include "epoll_server.hpp"
#include <string>
static void Usage(std::string proc){
    std::cerr << "Usage :" << "\n\t" << proc <<" port "<<std::endl;
}

int main(int argc, char* argv[]){
    if(argc != 2){
        Usage(argv[0]);
        exit(4);
    }

    ns_epoll::EpollServer* epollsrv = new ns_epoll::EpollServer(atoi(argv[1]));

    epollsrv->InitEpollServer();
    epollsrv->Run();
}
